<html>
<head>
    <meta charset='utf-8'>
    <title>{{ request.session.username }}的笔记</title>
</head>
<body>
    <p>
        {{ request.session.username }}的笔记
        <a href="/note/add/">添加新笔记</a>
        <a href="/index/">返回首页</a>
    </p>
    <table width="1000" border="1" cellspacing="1">
        <tr>
            <th>ID</th>
            <th>标题</th>
            <th>创建时间</th>
            <th>更新时间</th>
            <th>修改</th>
            <th>删除</th>
        </tr>
        {% for each in data_list %}
            {% if each.is_active %}
                <tr>
                    <th>{{ each.id }}</th>
                    <th><a href="">{{ each.title }}</a></th>
                    <th>{{ each.create_time }}</th>
                    <th>{{ each.update_time }}</th>
                    <th><a href="/note/update/?id={{ each.id }}">更新</a></th>
                    <th><a href="/note/del/?id={{ each.id }}">删除</a></th>
                </tr>
            {% endif %}
        {% endfor %}
    </table>
</body>
</html>